<?php


namespace app\sonpartner\controller;

use redis\RedisPackage;

class Logout extends Common
{
    /**
     * 退出登录
     */
    public function userLogout()
    {
        $id = $this -> id;
        $key = 'uid_' . $id;
        RedisPackage::del($key);
        returnSuccess([], '退出登录成功');
    }
}